home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / listdel.zip / README < prev   
Text File  |  1991-10-27  |  4KB  |  137 lines

  1.  
  2.  
  3.  
  4. Here's a little utility in exchange for the freebies that I've downloaded.
  5.  
  6. THIS SOFTWARE IS SUPPLIED AS IS, WITHOUT WARRENTY AND I TAKE NO
  7. RESPONSIBILITY FOR ANY DAMAGE CAUSED BY IT'S USE.  USE OF THIS SOFTWARE
  8. IS ACCEPTANCE OF THIS DISCLAIMER.  I RECOMMEND THAT YOU BACKUP YOUR
  9. DRIVE BEFORE USING THE UTILITY.
  10.  
  11. That's got that out of the way, now here's what it does.
  12.  
  13. I downloaded a global delete utilities from CIS with the intention of
  14. erasing all of my *.old, *.bak files, etc.
  15.  
  16. When it came to it, I found that there were a few files with these
  17. extensions that I didn't want to delete.  So LISTDEL.EXE is a solution
  18. to that problem.
  19.  
  20. It uses the directory listing generated by the DOS 5.0 DIR command to
  21. allow you to quickly erase only those files that you want to erase.
  22.  
  23.  
  24. INSTRUCTIONS:
  25.  
  26. Create a file (in the example below it is called LIST) containing a
  27. directory listing using for instance:
  28.  
  29. DIR /s *.bak >LIST
  30.  
  31. Edit this file placing an asterix ('*') at the beginning of each file that you
  32. wish to delete. (See an example of a typical file below.)
  33.  
  34. Save the modified file.
  35.  
  36. Run LISTDEL as follows:
  37.  
  38. LISTDEL LIST
  39.  
  40. (or replace LIST with whatever filename you have chosen to use).
  41.  
  42. This will NOT erase anything but it will tell you what files will be
  43. erased.  Check this to make sure that you're be happy to erase all of
  44. these files.  (If not, modify the file LIST adding and removing asterix's
  45. as appropriate.)
  46.  
  47. When you are satisified, you can ACTUALLY erase the files by adding the 
  48. /DOIT option to the command line as follows:
  49.  
  50. LISTDEL LIST /DOIT
  51.  
  52. NOTHING WILL EVER BE ERASED UNLESS YOU USE THE /DOIT OPTION ON THE
  53. COMMAND LINE.
  54.  
  55. The filename and options can be in any order and are case insensitive.
  56.  
  57. If you want to erase most of the files in LIST, then the command line
  58. option /MARKALL will create a new file with asterix's added to all of
  59. the filenames.  Then you can edit the new file removing asterix's from
  60. the files that you DON'T want to delete. 
  61.  
  62. The command:
  63.  
  64. LISTDEL LIST /MARKALL
  65.  
  66. will use the information in LIST and generate a new file called LIST.MRK
  67. (If LIST.MRK already exists then the program will abort.)
  68.  
  69. Edit LIST.MRK, removing asterix's as appropriate and then run LISTDEL as
  70. follows:
  71.  
  72. LISTDEL LIST.MRK
  73.  
  74. This will show you which files will be deleted and when you are happy
  75. with the intented outcome add /DOIT to the command line to erase the
  76. chosen files.  I.e.:
  77.  
  78. LISTDEL LIST.MRK /DOIT
  79.  
  80. If you find LISTDEL useful, let me know.  I'll then be encouraged to
  81. upload any enhancements.
  82.  
  83.  
  84. Alan Harry
  85. Cambridge
  86. UK
  87.  
  88. Sunday, 27 October 1991
  89.  
  90. Contactable via Compuserve; User id 100023,525.
  91.  
  92.                *******************************************
  93.  
  94. As an example, here is a typical directory listing generated by the DOS
  95. 5.0 DIR command with the /s option, executed from the root directory.
  96.  
  97. Asterix's have been added at the front of a number of file names to
  98. specify that these are the ones to be erased:
  99.  
  100.  
  101.  Volume in drive C is DOS401
  102.  Volume Serial Number is 1748-9D05
  103.  
  104. Directory of C:\
  105.  
  106. CONFIG   BAK       869 19/10/91   22:03
  107.         1 file(s)        869 bytes
  108.  
  109. Directory of C:\COMPILE
  110.  
  111. *COMP8051 BAK      5995 24/10/91    4:53
  112.         1 file(s)       5995 bytes
  113.  
  114. Directory of C:\COMPILE\8051LIB
  115.  
  116. *SCANF    BAK     10453 27/10/91   16:36
  117. *CT       BAK        30 16/10/91   15:31
  118. *MYHDR    BAK       184 06/10/91   19:06
  119.         3 file(s)      10667 bytes
  120.  
  121. Directory of C:\NEWPRODS\TERMINAL.JPD\DISC1
  122.  
  123. COMMENT  BAK       329 04/03/91   22:55
  124. *README   BAK       290 04/03/91   23:07
  125.         2 file(s)        619 bytes
  126.  
  127. Directory of C:\UTILS
  128.  
  129. *LISTDEL  BAK      4715 27/10/91   18:02
  130.         1 file(s)       4715 bytes
  131.  
  132. Total files listed:
  133.        28 file(s)      53314 bytes
  134.                     27828224 bytes free
  135.  
  136.  
  137.